//
// Created by Administrator on 2017/12/10.
//
#include <jni.h>
#include "SDL2_Core.h"
#include "log.h"

JNIEXPORT void JNICALL
Java_com_mlingdu_ffmpegaudioplayer_FFmpegVideoPlayer_play(JNIEnv *env, jclass type, jstring url_) {
    const char *url = (*env)->GetStringUTFChars(env, url_, 0);
    ALOGD("start play video... url=%s", url);
    play(url);
    (*env)->ReleaseStringUTFChars(env, url_, url);
}
JNIEXPORT void JNICALL
Java_com_mlingdu_ffmpegaudioplayer_FFmpegVideoPlayer_stop(JNIEnv *env, jclass type) {
    ALOGD("stop","");
    stop();
}